package org.aeon.client.handler.Inbound;

import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import lombok.extern.slf4j.Slf4j;
import org.aeon.message.response.BlacklistModifyResponseMessage;

/**
 * @author: MissingAeon
 * @date: 2024/1/31 9:23
 * @description:
 */
@Slf4j
@ChannelHandler.Sharable
public class BlacklistModifyResponseHandler extends SimpleChannelInboundHandler<BlacklistModifyResponseMessage> {
    @Override
    protected void channelRead0(ChannelHandlerContext ctx, BlacklistModifyResponseMessage msg) throws Exception {
        if (msg.isSuccess()) {
            log.debug("{}", msg.getReason());
        }
    }
}
